package com.kingdee.pda.ui.scan_inwarehouse;

import com.kingdee.pda.entity.SnlistBean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @author：dlj
 * @data：2021/11/15 13:25
 * @des： 自定义扫描收货详情界面展示的bean对象（物流单中的多个ASN单合并sku明细后得到），方便前端操作使用
 */
public class ScanReceiveShowDetailBean implements Serializable {
    private Set<String> billnos;//单号集合

    //该货主-sku纬度对应的所有sku明细集合
    private List<ScanReceiveOrderBean.AsnListBean.DetailBean> detailBeanList;

    private String ownername;
    private String ownerid;

    private List<String> skubarcode;//商品条码
    private String skuname;
    private String spucode;
    private String spuname;

    private int palnqty;
    private int scannedqty;
    private int receiptedqty;

    private String sn;//是否开启sn OFF不开启

    private String skuid;
    private Set<SnlistBean> snlist = new HashSet<>();

    public Set<SnlistBean> getSnlist() {
        return snlist;
    }

    public void setSnlist(Set<SnlistBean> snlist) {
        this.snlist = snlist;
    }

    public String getSkuid() {
        return skuid == null ? "" : skuid;
    }

    public void setSkuid(String skuid) {
        this.skuid = skuid;
    }

    public List<String> getSkubarcode() {
        if (skubarcode == null) {
            return new ArrayList<>();
        }
        return skubarcode;
    }

    public int getReceiptedqty() {
        return receiptedqty;
    }

    public void setReceiptedqty(int receiptedqty) {
        this.receiptedqty = receiptedqty;
    }

    public void setSkubarcode(List<String> skubarcode) {
        this.skubarcode = skubarcode;
    }

    public Set<String> getBillnos() {
        return billnos;
    }

    public void setBillnos(Set<String> billnos) {
        this.billnos = billnos;
    }

    public String getOwnername() {
        return ownername == null ? "" : ownername;
    }

    public void setOwnername(String ownername) {
        this.ownername = ownername;
    }

    public String getOwnerid() {
        return ownerid == null ? "" : ownerid;
    }

    public void setOwnerid(String ownerid) {
        this.ownerid = ownerid;
    }

    public String getSkuname() {
        return skuname == null ? "" : skuname;
    }

    public void setSkuname(String skuname) {
        this.skuname = skuname;
    }

    public String getSpucode() {
        return spucode == null ? "" : spucode;
    }

    public void setSpucode(String spucode) {
        this.spucode = spucode;
    }

    public String getSpuname() {
        return spuname == null ? "" : spuname;
    }

    public void setSpuname(String spuname) {
        this.spuname = spuname;
    }

    public int getPalnqty() {
        return palnqty;
    }

    public void setPalnqty(int palnqty) {
        this.palnqty = palnqty;
    }

    public int getScannedqty() {
        return scannedqty;
    }

    public void setScannedqty(int scannedqty) {
        this.scannedqty = scannedqty;
    }

    public List<ScanReceiveOrderBean.AsnListBean.DetailBean> getDetailBeanList() {
        if (detailBeanList == null) {
            return new ArrayList<>();
        }
        return detailBeanList;
    }

    public void setDetailBeanList(List<ScanReceiveOrderBean.AsnListBean.DetailBean> detailBeanList) {
        this.detailBeanList = detailBeanList;
    }

    public String getSn() {
        return sn == null ? "" : sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }
}
